package cn.itsource.org.ro;

import cn.itsource.common.domain.BaseDomain;
import cn.itsource.org.domain.Role;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class RoleRo extends BaseDomain {
    private String name;
    private String sn;
    private List<Long> menus;
    private List<Long> permissions;

    public static Role RoleRoToRole(RoleRo roleRo){
        Role role = new Role();
        BeanUtils.copyProperties(roleRo,role);
        return role;
    }
}
